<?php

namespace app\validate\api\recruit;

use think\Validate;

class companyValidate extends Validate
{

    protected $rule = [
        'business_license_name' => 'require',
        'company_type' => 'require',
        'business_license_images' => 'require',
        'corporate_capacity_images' => 'require',
        //'name' => 'require',
        'province_id' => 'require|number',
        'province_name' => 'require',
        'city_id' => 'require|number',
        'city_name' => 'require',
        'district_id' => 'require|number',
        'district_name' => 'require',
        'address' => 'require',
        'company_nums' => 'require',
        'logo_image' => 'require',
    ];

    protected $message = [
        'business_license_name.require' => '营业执照名称必须填写',
        'company_type.require' => '企业类型必须填写',
        'business_license_images.require' => '营业执照照片必须提供',
        'corporate_capacity_images.require' => '法人身份证照片必须提供',
        //'name.require' => '企业名称必须填写',
        'province_id' => '请选择省份',
        'city_id' => '请选择市',
        'district_id' => '请选择区',
        'province_name' => '请选择省份名称',
        'city_name' => '请选择市名称',
        'district_name' => '请选择区名称',
        'address' => '详细地址不能为空',
        'company_nums' => '人员规模不能为空',
        'logo_image' => '公司logo不能为空',
    ];
}